<html>
<head>
    <meta charset="UTF-8">
    <title></title>
    <link rel="stylesheet" href="./frame/assets/css/lib/bootstrap.min.css">
    <link rel="stylesheet" href="./frame/assets/css/lib/font-awesome.min.css">
    <link rel="stylesheet" href="./frame/assets/css/lib/themify-icons.css">
    <link rel="stylesheet" href="./frame/assets/css/lib/unix.css">
    <link rel="stylesheet" href="./frame/assets/css/style.css">
    <link rel="stylesheet" href="./frame/assets/css/input.css">
    <link rel="stylesheet" href="./frame/asset/lib/layui/css/layui.css">
    <link rel="stylesheet" href="./frame/asset/css/common.css">
</head>
<body class="bg-primary">
<div id="login_div" class="unix-login"  >
    <div class="container">
        <div class="row">
            <div class="col-lg-9 col-lg-offset-2 ">
                <div class="login-content">
                    <div class="login-form">
                        <div class="login-logo">
                            <h1 style="color: #5d7d8c">浣熊市基层信息管理系统</h1>
                        </div>
                        <img src="./frame/upload/images/2017/6/12345.png"  style="margin-right:15%;margin-left:10%;margin-top:5%;width: 284px;height: 300px;float: left;"  src="">
                        </br>
                        <h3 style="color: #5d7d8c">Login account</h3>
                        </br>
                        <form>
                            <div class="form-group">
                                <label style="font-family: Georgia;color: #5d7d8c;">账号</label>
                                <input style="width: 40%;" type="email" id="email_login_f" class="form-control" placeholder="请输入登录用户名">
                            </div>
                            <div class="form-group">
                                <label style="font-family: Georgia;color: #5d7d8c;">密码</label>
                                <input style="width: 40%;" type="password" id="password_login_f" class="form-control" placeholder="请输入密码">
                            </div>

                            <div class="error_box" id="error_login_f" ></div>

                            <button style="width: 30%;float: right;margin-right: 10%" type="button" id="btn" class="btn btn-primary btn-rounded m-b-10 m-l-50" >登      录</button>

                            <div class="register-link m-t-15 text-center " style="margin-bottom: 10%;margin-left: 40%;">
                                <p><a href="forget.html" >忘记密码？</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

                                    <a href="register.html"> 点击注册</a></p>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>

<script type="text/javascript" src="./frame/assets/js/lib/jquery.min.js"></script>
<script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="./frame/layui/lay/modules/layer.js"></script>
<link rel="stylesheet" href="./frame/layui/lay/modules/layer/default/layer.css">
<link rel="stylesheet" href="./frame/layui/css/layui.css"  media="all">
<script type="text/javascript" src="./frame/layui/layui.js" charset="utf-8"></script>
<script>
    $("#btn").click(function (){
        $.ajax({
            type:"get",//post或者get，非必须
            url:"/dologin",//必须的
            dataType:"json",//text/xml/json，非必须
            data:{"name":$("#email_login_f").val(),"pwd":$("#password_login_f").val()},
            success:function(data){//回调函数，非必须
                    if(data.code=='yes'){
                        window.location.href="main.html";
                     }
                    else {
                        alert("用户名密码错误")
                    }
            }
        });
    });

</script>
</html>
